package com.woniuxy.user.mapper;


import com.woniuxy.entity.AllUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserMapper {
    //登录
    AllUser login(@Param("username") String username, @Param("password") String password);
    //查询电话是否存在
    AllUser findByPhone(@Param("phone") String phone);
    //通过username找到用户
    AllUser findByUsername(@Param("username") String username);
    //添加用户
    void addUser(@Param("allUser") AllUser allUser);
}
